package com.k8s.base.repository;


import com.k8s.base.domain.DomainConfig;
import org.springframework.data.jpa.repository.*;
import org.springframework.stereotype.Repository;

import java.util.Optional;

/**
 * Spring Data JPA repository for the DomainConfig entity.
 */
@SuppressWarnings("unused")
@Repository
public interface DomainConfigRepository extends JpaRepository<DomainConfig, Long> {

    Optional<DomainConfig> findOneByDomainName(String domainName);

    Optional<DomainConfig> findOneByOfficeId(Long officeId);
}
